//
//  YbrBgkDao.h
//  wifibox
//
//  Created by os X 10.9 on 14-12-4.
//  Copyright (c) 2014年 yinbaner. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YbrFaviItem.h"
#import "YbrClassInfoItem.h"



@interface YbrBgkDao : NSObject


// 判断是否存在,或者存在某一个列表中
-(BOOL) isAddYet:(int)_id;
-(BOOL) isHavePlaylistName:(int) musicid playlistId:(int) playlistId;


-(BOOL) addToBgk:(YbrClassInfoItem *) ybrclassInfoItem;

-(NSArray *) getAllBgk;
-(YbrClassInfoItem *) getMusicById:(int) _id;
-(BOOL) removeMusicById:(int) musicId;
+(BOOL) removeMusicByFavmusicid:(int) favmusicid;
+(NSArray *) getAllBgkByFavmusicid:(int)favId;

+(int)insert:(YbrFaviItem *)item;
+(BOOL)update:(YbrFaviItem *)item;
+(BOOL)deletes:(YbrFaviItem *)item;
+(NSArray *) getAllFavMusic;




@end
